package com.ruoyi.find.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.find.mapper.HouseAppointmentMapper;
import com.ruoyi.find.domain.HouseAppointment;
import com.ruoyi.find.service.IHouseAppointmentService;

/**
 * 分配经理人Service业务层处理
 * 
 * @author gjq
 * @date 2025-09-18
 */
@Service
public class HouseAppointmentServiceImpl implements IHouseAppointmentService 
{
    @Autowired
    private HouseAppointmentMapper houseAppointmentMapper;

    /**
     * 查询分配经理人
     * 
     * @param id 分配经理人主键
     * @return 分配经理人
     */
    @Override
    public HouseAppointment selectHouseAppointmentById(Long id)
    {
        return houseAppointmentMapper.selectHouseAppointmentById(id);
    }

    /**
     * 查询分配经理人列表
     * 
     * @param houseAppointment 分配经理人
     * @return 分配经理人
     */
    @Override
    public List<HouseAppointment> selectHouseAppointmentList(HouseAppointment houseAppointment)
    {
        return houseAppointmentMapper.selectHouseAppointmentList(houseAppointment);
    }

    /**
     * 新增分配经理人
     * 
     * @param houseAppointment 分配经理人
     * @return 结果
     */
    @Override
    public int insertHouseAppointment(HouseAppointment houseAppointment)
    {
        return houseAppointmentMapper.insertHouseAppointment(houseAppointment);
    }

    /**
     * 修改分配经理人
     * 
     * @param houseAppointment 分配经理人
     * @return 结果
     */
    @Override
    public int updateHouseAppointment(HouseAppointment houseAppointment)
    {
        return houseAppointmentMapper.updateHouseAppointment(houseAppointment);
    }

    /**
     * 批量删除分配经理人
     * 
     * @param ids 需要删除的分配经理人主键
     * @return 结果
     */
    @Override
    public int deleteHouseAppointmentByIds(Long[] ids)
    {
        return houseAppointmentMapper.deleteHouseAppointmentByIds(ids);
    }

    /**
     * 删除分配经理人信息
     * 
     * @param id 分配经理人主键
     * @return 结果
     */
    @Override
    public int deleteHouseAppointmentById(Long id)
    {
        return houseAppointmentMapper.deleteHouseAppointmentById(id);
    }
}
